package swingTests;

import java.awt.BorderLayout;

import javax.swing.BorderFactory;
import javax.swing.JPanel;
import javax.swing.JFrame;
import java.awt.Dimension;
import javax.swing.JTextField;
import javax.swing.JLabel;

import java.awt.Color;
import java.awt.Font;
import java.awt.Rectangle;
import java.awt.Point;
import javax.swing.JCheckBox;

public class OverlapTest extends JFrame {

    private static final long serialVersionUID = 1L;
    private JPanel jContentPane = null;
    private JTextField jTextField = null;
    private JLabel jLabel = null;
    private JLabel jLabel1 = null;
    private JTextField jTextField1 = null;
    private JTextField jTextField2 = null;
    /**
     * This is the default constructor
     */
    public OverlapTest() {
        super();
        initialize();
        repaint();
    }

    /**
     * This method initializes this
     * 
     * @return void
     */
    private void initialize() {
        this.setSize(762, 252);
        this.setContentPane(getJContentPane());
        this.setTitle("JFrame");
    }

    /**
     * This method initializes jContentPane
     * 
     * @return javax.swing.JPanel
     */
    private JPanel getJContentPane() {
        if (jContentPane == null) {
            jLabel1 = new JLabel();
            jLabel1.setText("SECOND");
            jLabel1.setBounds(new Rectangle(189, 103, 141, 69));
            jLabel1.setFont(new Font("Arial",Font.BOLD , 90));
            jLabel1.setBorder(BorderFactory.createLineBorder(Color.red));
            
            jLabel = new JLabel();
            jLabel.setBorder(BorderFactory.createLineBorder(Color.red));
            jLabel.setBackground(Color.green);
            jLabel.setText("FIRST");
            jLabel.setLocation(new Point(26, 53));
            jLabel.setSize(new Dimension(195, 101));

            jContentPane = new JPanel();
            jContentPane.setLayout(null);
            jContentPane.add(getJTextField());
            jContentPane.add(jLabel);
            jContentPane.add(jLabel1);
            jContentPane.add(getJTextField2(), null);
            jContentPane.add(getJTextField1(), null);
            
            
//            
//            jContentPane.add(getJTextField1(), null);
//            jContentPane.add(getJTextField2(), null);

        }
        return jContentPane;
    }

    /**
     * This method initializes jTextField	
     * 	
     * @return javax.swing.JTextField	
     */
    private JTextField getJTextField() {
        if (jTextField == null) {
            jTextField = new JTextField();
        }
        return jTextField;
    }

    /**
     * This method initializes jTextField1	
     * 	
     * @return javax.swing.JTextField	
     */
    private JTextField getJTextField1() {
        if (jTextField1 == null) {
            jTextField1 = new JTextField("1");
            jTextField1.setBounds(new Rectangle(417, 34, 206, 74));
        }
        return jTextField1;
    }

    /**
     * This method initializes jTextField2	
     * 	
     * @return javax.swing.JTextField	
     */
    private JTextField getJTextField2() {
        if (jTextField2 == null) {
            jTextField2 = new JTextField("2");
            jTextField2.setBounds(new Rectangle(468, 86, 58, 60));
        }
        return jTextField2;
    }

}  //  @jve:decl-index=0:visual-constraint="10,10"
